package com.beten.ui.main;

import com.beten.demo.MainActivity;
import com.beten.demo.R;
import com.beten.ui.main.style.StyleAdapter;
import com.beten.ui.main.style.StyleInfo;
import com.beten.ui.util.BtGallery;

public class StyleView extends BaseView {

	StyleAdapter adapter;
	BtGallery gallery;
	public StyleView(MainActivity activity) {
		super(activity);
		gallery=(BtGallery) activity.findViewById(R.id.style_gallery);
		adapter=new StyleAdapter(mContext);
	}

	@Override
	protected void OnViewInit() {
		for(int i=0;i<4;i++)
		{
			adapter.mData.add(new StyleInfo());
		}
		gallery.setAdapter(adapter);
	}

}
